import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import './styles/index.less'
import 'element-ui/lib/theme-chalk/index.css';
import locale from 'element-ui/lib/locale/lang/zh-CN'
import VueI18n from 'vue-i18n';
import md5 from 'js-md5'
import './filters/day'
// 导入全局样式表
import './styles/index.css'
import './assets/font/iconfont.css'

// 全局导入echarts
import echarts from "echarts";

// 挂载$echarts方法

Vue.prototype.$echarts = echarts;
import "./styles/index.css";
import "@/utils/dayjs";

//导入富文本编辑器
import VueQuillEditor from "vue-quill-editor";
//导入富文本编译器对应的样式
// import "quill/dist/quill.core.css"; // import styles
// import "quill/dist/quill.snow.css"; // for snow theme
// import "quill/dist/quill.bubble.css"; // for bubble theme

//将富文本编译器,注册为全局可用的组件
Vue.use(VueQuillEditor);
Vue.use(VueI18n);
Vue.prototype.$md5 = md5;
Vue.use(ElementUI, { locale });
Vue.config.productionTip = false;
const messages = {
    en: {
        message: {
            hello: "LOG IN",
        },
    },
    cn: {
        message: {
            hello: "登录",
        },
    },
};

const i18n = new VueI18n({
    // 设置当前语言包
    locale: "cn", //同步选择框的默认中文
    messages,
});

Vue.config.productionTip = false;
new Vue({
    router,
    store,
    i18n: i18n,
    render: (h) => h(App),
}).$mount("#app");